﻿
@{
    ViewBag.Title = "TestCache";
}

<h2>TestCache</h2>

<input type="text" placeholder="输入文字存入缓存" id="texts" />
<h6>缓存内容，用时</h6>
<input type="button" value="获取cache" id="btn" />
<script type="text/javascript">
    $(function() {
        $("#texts").blur(function () {
            debugger;
            $.post('../Index/LeaveComments',
                { 'PUnitID': 0, 'IPAddress': '192.168.1.1', 'Content': '第一条信息', 'IsDelect': '1', 'IsDisplay': '1', 'CreateTime': '2017-6-12-17:40:16', 'Name': '蓝芷怡', 'ReviseTime': '2017-6-12-17:40:16' },
                function(data) {
                    $("h6").text(data);
                });
        });
    })
</script>